﻿using Grpc.Net.Client;

namespace System.ConfigCenter.Client
{
    /// <summary>
    /// 配置管理单例,未来这里可以扩展N个节点的,但是没必要,预留,如果想要你们就扩展
    /// </summary>
    public class ClientInstance
    {
        /// <summary>
        /// 对象实例
        /// </summary>
        public static GrpcChannel? Instance { get; private set; }
        /// <summary>
        /// 初始化单例对象
        /// </summary>
        public static void Init(string configCenterHost)
        {
            Instance = GrpcChannel.ForAddress(configCenterHost);
        }
    }
}
